import {
  Controller,
  Get,
  Post,
  Body,
  Patch,
  Param,
  Delete,
} from '@nestjs/common';
import { BossService } from './boss.service';
import { WorkInfo } from './dto/create-boss.dto';

@Controller('boss')
export class BossController {
  constructor(private readonly bossService: BossService) {}
  @Post()
  create(@Body() workInfo: WorkInfo) {
    return this.bossService.main(workInfo);
  }

  @Get()
  findAll() {
    return this.bossService.findAll();
  }
}
